import axios from 'axios'

const request = axios.create({
	timeout: 10000,
	timeoutErrorMessage: '超时'
})


request.interceptors.request.use((config) => {
	return config
}, (error) => {
	return Promise.reject(error)
})



request.interceptors.response.use((response) => {
	return response
}, (error) => {
	return Promise.reject(error)
})

export default request